﻿<%@ Page Title="demandmaterialinfo" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="lcs.Web.demandmaterialinfo.List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" src="/js/CheckBox.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

            <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
                <tr>
                    <td style="width: 80px" align="right" class="tdbg">
                         <b>物料描述：</b>
                    </td>
                    <td class="tdbg" style="text-align:left;">                       
                    <asp:TextBox ID="txtKeyword" runat="server"></asp:TextBox>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnSearch" runat="server" Text="查询"  OnClick="btnSearch_Click" >
                    </asp:Button>                    
                        <asp:Panel ID="pxy" runat="server" Visible="false" style="display:inline;">
                            <asp:Label ID="lblxy" runat="server" Text="Label"></asp:Label>                            
                        </asp:Panel>
                    </td>
                    <td class="tdbg">
                        <asp:HyperLink ID="hladd" runat="server">增加</asp:HyperLink>
                    </td>
                </tr>
            </table>
            <!--Search end-->
            <br />
            <asp:GridView ID="gridView" runat="server" AllowPaging="True" Width="100%" BorderWidth="0px" CellPadding="0" CellSpacing="1" CssClass="gv" GridLines="None"   OnPageIndexChanging ="gridView_PageIndexChanging"
                     DataKeyNames="dmid" OnRowDataBound="gridView_RowDataBound"
                    AutoGenerateColumns="False" PageSize="20"  RowStyle-HorizontalAlign="Center" OnRowCreated="gridView_OnRowCreated" OnRowDeleting="gridView_RowDeleting">
                    <Columns>
                    <asp:TemplateField ControlStyle-Width="30" HeaderText="选择"    >
                         <HeaderTemplate>
                                    <input id="Checkbox1" type="checkbox" onclick="javascript: chall(this)" />                                    
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="DeleteThis" runat="server" />
                                </ItemTemplate>

<ControlStyle Width="30px"></ControlStyle>
                            </asp:TemplateField> 
                            
		<asp:BoundField DataField="mbm" HeaderText="物料编码" SortExpression="mbm" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="mms" HeaderText="物料描述" SortExpression="mms" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="vtype" HeaderText="电压等级千伏" SortExpression="vtype" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="num" HeaderText="需用数量" SortExpression="num" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="deliverytime" HeaderText="交货时间" SortExpression="deliverytime" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="deliveryadd" HeaderText="交货地点" SortExpression="deliveryadd" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="estimate" HeaderText="行价格（万元）" SortExpression="estimate" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="price" HeaderText="单价" SortExpression="price" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="pbh" HeaderText="计划编号" SortExpression="pbh" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
             <asp:BoundField DataField="pmtype" HeaderText="采购类别" SortExpression="pmtype" ItemStyle-HorizontalAlign="Center"  >               
                           
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="编辑">
                            <ItemTemplate>
                                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("dmid", "Modify.aspx?dmid={0}") %>' Text="编辑"></asp:HyperLink>
                            </ItemTemplate>
                            <ControlStyle Width="50px" />
                        </asp:TemplateField>
                            <asp:TemplateField ControlStyle-Width="50" HeaderText="删除" >
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                         Text="删除"></asp:LinkButton>
                                </ItemTemplate>

<ControlStyle Width="50px"></ControlStyle>
                            </asp:TemplateField>
                        </Columns>

<RowStyle HorizontalAlign="Center"></RowStyle>
                </asp:GridView>
               <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
                <tr>
                    <td style="width: 1px;">                        
                    </td>
                    <td align="left">
                        <asp:Panel ID="precom" runat="server" style="float:left;">
                        <b>&nbsp; 推荐厂家：</b><asp:DropDownList ID="ddlrecom" runat="server"></asp:DropDownList>   <asp:Button ID="btnre" runat="server" Text="推荐" OnClick="btnre_Click" />     </asp:Panel>               
                        <b>&nbsp;&nbsp; 技术文件:</b><asp:FileUpload ID="fufile" runat="server" />
                        <asp:Button ID="btnfile" runat="server" Text="上传" OnClick="btnfile_Click" />&nbsp;&nbsp;<asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click"/>
                    </td>
                </tr>
            </table>
</asp:Content>
<%--<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceCheckright" runat="server">
</asp:Content>--%>
